import request from '@/utils/web-http'

const apiUrl = '/site'

export function getSiteList(query) {
  return request({
    url: apiUrl,
    method: 'get',
    params: query
  })
}

export function getSiteInfo(id, params) {
  return request({
    url: apiUrl + '/' + id,
    method: 'get',
    params
  }).then(res => {
    return res.data
  })
}
